import request from '../utils/request';

export const getLogins = (obj: any) => request.get(`/user?employee=${obj.username}`)

export const getCorp = () => request.get('/corp')
export const getLogin = (data: any) => request.post('/login', data);


export const getCropData = () => request.get('/corp/cList')

// 回款
export const getfinanceData = () => request.get('/data')


//修改
export const getEmitData = (id: any, val: any) => request.patch(`/corp/${id}`, val)

//添加
export const addEmitData = (val: any) => request.post('/corp', val)

export const getLeaveApplication = () => request.get('/leaveApplication')

export const getTravelRequisition = () => request.get('/travelRequisition')


export const getLoanApplication = () => request.get('/loanApplication')

export const getWork = () => request.get('/work')


export const getCustomerVisits = () => request.get('/customerVisits')

export const getTicket = () => request.get('/ticket')


export const getBoTun = ()=> request.get('/bo_tun')
export const getOrOrder = ()=> request.get('/or_Order')

export const getUser = ()=> request.get('/user')